

CFLAGS+=-DVECT_TAB_FLASH
CFLAGS+=-D"assert_param(expr)=((void)0)"

SRCS =$(wildcard *.c) 
OBJS =$(patsubst %.c, %.o, $(SRCS))

libstm32.a:$(OBJS)
	@$(AR) -cr $@ $^
	cp $@ $(LIB_DIR)
	@echo "Generate $@ done."
		
.c.o:
	$(CC) -c $^ -o $@ $(CFLAGS)
	
.PHONY: clean
clean:
	@rm -f $(OBJS)

